package com.youbug.mall.service_ucs.service;

import com.youbug.common.to.OrderTo;
import com.youbug.mall.service_ucs.entity.UcsServiceTicket;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 服务单表 服务类
 * </p>
 *
 * @author youbug
 * @since 2023-01-08
 */
public interface IServiceTicketService extends IService<UcsServiceTicket> {

    boolean saveTicketAndOrder(UcsServiceTicket ticket);

    boolean updateTicketAndOrder(UcsServiceTicket ticket);

    boolean createWorkorder(Long ticketId, List<OrderTo> tos);
}
